<%--
  Created by IntelliJ IDEA.
  User: 92460
  Date: 2020/12/14
  Time: 13:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>创建Session</title>
</head>
<body>
<%
    session.setAttribute("test","hello");  //保存到数据session中
    //让客户端重定向到其他页面
    response.sendRedirect("getSessionId.jsp");
%>
</body>
</html>
